.class public final Lkairo/android/b/a;
.super Ljava/lang/Object;


# direct methods
.method public static a(FFFFF)F
    .locals 4

    const v3, 0x40490fdb    # (float)Math.PI

    const/4 v0, 0x0

    cmpg-float v0, p3, v0

    if-gez v0, :cond_1

    move p1, p0

    :cond_0
    :goto_0
    return p1

    :cond_1
    cmpl-float v0, p3, p2

    if-gez v0, :cond_0

    div-float v0, p3, p2

    mul-float v1, v3, v0

    const/high16 v2, 0x43340000    # 180.0f

    mul-float/2addr v1, v2

    div-float/2addr v1, v3

    invoke-static {v1}, Lkairo/android/e/a/a;->d(F)F

    move-result v1

    sub-float v2, p1, p0

    const v3, 0x439d1463

    div-float v3, p4, v3

    mul-float/2addr v1, v3

    add-float/2addr v0, v1

    mul-float/2addr v0, v2

    add-float/2addr v0, p0

    cmpg-float v1, p0, p1

    if-gez v1, :cond_4

    cmpg-float v1, v0, p0

    if-gez v1, :cond_2

    move v0, p0

    :cond_2
    cmpl-float v1, v0, p1

    if-gtz v1, :cond_0

    :cond_3
    move p1, v0

    goto :goto_0

    :cond_4
    cmpl-float v1, v0, p0

    if-lez v1, :cond_5

    move v0, p0

    :cond_5
    cmpg-float v1, v0, p1

    if-gez v1, :cond_3

    goto :goto_0
.end method

.method public static a(IIIII)I
    .locals 6

    const v3, 0x40490fdb    # (float)Math.PI

    if-gez p3, :cond_1

    move p1, p0

    :cond_0
    :goto_0
    return p1

    :cond_1
    if-ge p3, p2, :cond_0

    int-to-float v0, p3

    int-to-float v1, p2

    div-float/2addr v0, v1

    mul-float v1, v3, v0

    const/high16 v2, 0x43340000    # 180.0f

    mul-float/2addr v1, v2

    div-float/2addr v1, v3

    invoke-static {v1}, Lkairo/android/e/a/a;->d(F)F

    move-result v1

    int-to-float v2, p0

    sub-int v3, p1, p0

    int-to-float v3, v3

    int-to-float v4, p4

    const v5, 0x439d1463

    div-float/2addr v4, v5

    mul-float/2addr v1, v4

    add-float/2addr v0, v1

    mul-float/2addr v0, v3

    add-float/2addr v0, v2

    float-to-int v0, v0

    if-ge p0, p1, :cond_4

    if-ge v0, p0, :cond_2

    move v0, p0

    :cond_2
    if-gt v0, p1, :cond_0

    :cond_3
    move p1, v0

    goto :goto_0

    :cond_4
    if-le v0, p0, :cond_5

    move v0, p0

    :cond_5
    if-ge v0, p1, :cond_3

    goto :goto_0
.end method
